home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 September
/
Macworld (1998-09).dmg
/
Shareware World
/
Info
/
For Developers
/
Script Tools 1.3.6
/
Examples
/
Shutdown Example
< prev
Wrap
Text File
|
1993-07-08
|
277b
|
7 lines
set result to display dialog "Are you sure you want to shutdown?" ¬
buttons {"Shutdown", "Restart", "Cancel"} ¬
default button "Cancel"
if button returned of result = "Shutdown" then ¬
shutdown without rest
if button returned of result = "Restart" then ¬
shutdown with rest